import _axios from 'axios'

export const orderSearch = (keyword) => {
    let options = {
        url: api.crm + `/reservationInfo/order/getDetail?keyword=${keyword}&pageIndex=1&pageSize=50`,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}
// 赠送礼品
export const getGiftList = (phone) => {
    let options = {
        url: api.crm + `/reservationInfo/getGift?phone=${phone}`,
        method: 'GET',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}

// 未成交原因
export const getUndealReason = () => {
    let options = {
        url: api.base + `/systemDictionary/getByType/unsettledType`,
        method: 'POST',
        headers: {
            "Content-Type": 'application/json', "Accept": 'application/json'
        }
    }
    return _axios(options)
}